﻿namespace HCRS.Implementation
{
    using System;

    /// <summary>
    /// 查询酒店价格条件
    /// </summary>
    public class GetRateInfo
    {
        private int _adults = 1;
        private string _checkin = DateTime.Today.ToString("yyyy-MM-dd");
        private int _children = 0;
        private string _currencycode = "";
        private string _filter = "2";
        private string _iata = "";
        private int _language = 0;
        private int _nights = 1;
        private int _pid = 0;
        private string[] _ratecodes = new string[] { "" };
        private string[] _roomcodes = new string[] { "" };
        private int _rooms = 1;

        /// <summary>
        /// 每间入住人数
        /// </summary>
        public int adults
        {
            get
            {
                return this._adults;
            }
            set
            {
                this._adults = value;
            }
        }

        /// <summary>
        /// 入住日期
        /// </summary>
        public string checkin
        {
            get
            {
                return this._checkin;
            }
            set
            {
                this._checkin = value;
            }
        }

        /// <summary>
        /// 儿童数量
        /// </summary>
        public int children
        {
            get
            {
                return this._children;
            }
            set
            {
                this._children = value;
            }
        }

        /// <summary>
        /// 货币代码
        /// </summary>
        public string currencycode
        {
            get
            {
                return this._currencycode;
            }
            set
            {
                this._currencycode = value;
            }
        }

        /// <summary>
        /// 过滤(0查全部,1不包括B的,2不包括B，并且时间上是连续的)
        /// </summary>
        public string filter
        {
            get
            {
                return this._filter;
            }
            set
            {
                this._filter = value;
            }
        }

        /// <summary>
        /// iata号
        /// </summary>
        public string iata
        {
            get
            {
                return this._iata;
            }
            set
            {
                this._iata = value;
            }
        }

        /// <summary>
        /// 语言中文:0,英文:1
        /// </summary>
        public int language
        {
            get
            {
                return this._language;
            }
            set
            {
                this._language = value;
            }
        }

        /// <summary>
        /// 过夜天数
        /// </summary>
        public int nights
        {
            get
            {
                return this._nights;
            }
            set
            {
                this._nights = value;
            }
        }

        /// <summary>
        /// 酒店pid
        /// </summary>
        public int pid
        {
            get
            {
                return this._pid;
            }
            set
            {
                this._pid = value;
            }
        }

        /// <summary>
        /// 价格代码
        /// </summary>
        public string[] ratecodes
        {
            get
            {
                return this._ratecodes;
            }
            set
            {
                this._ratecodes = value;
            }
        }

        /// <summary>
        /// 房型代码
        /// </summary>
        public string[] roomcodes
        {
            get
            {
                return this._roomcodes;
            }
            set
            {
                this._roomcodes = value;
            }
        }

        /// <summary>
        /// 房间数量
        /// </summary>
        public int rooms
        {
            get
            {
                return this._rooms;
            }
            set
            {
                this._rooms = value;
            }
        }
    }
}

